import request from '@/utils/request'
export default {
    //生成订单
    createOrder(courseId) {
        return request({
            url: `/eduorder/order/createOrder/${courseId}`,
            method: 'post'
        })
    },
    //获取订单信息
    getOrderInfo(orderNo) {
        return request({
            url: `/eduorder/order/getOrder/${orderNo}`,
            method: 'get'
        })
    },
    //3、生成微信支付二维码
    createNative(cid) {
        return request({
            url: '/eduorder/paylog/createNative/' + cid,
            method: 'get'
        })
    },
    //4、根据id获取订单支付状态
    queryPayStatus(cid) {
        return request({
            url: '/eduorder/paylog/queryPayStatus/' + cid,
            method: 'get'
        })
    }
}